package cn.itsource.ymcc.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class LoginVo {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不能为空")
    private String password;
    @Range(min = 0,max = 1,message = "用户类型错误")
    @NotNull(message = "用户类型不能为空")
    private Integer type;
}
